package com.bym.mall.form;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


/**
 * 购物车更新表单
 *
 * @author My
 * @date 2022/03/27
 */
@Data
public class CartUpdateForm {

    /**
     * 商品id
     */
    @NotNull
    private Integer productId;

    /**
     * 商品数量
     */
    @NotNull
    @Min(value = 1)
    private Integer quantity;

    /**
     * 是否被选中
     */
    @NotNull
    private Boolean selected;
}
